import { request } from '../utils/request';

export function modifyUser(data) {
  return request({
    url: '/admin/modifyUser',
    method: 'post',
    data,
  });
}
export function selectUser(user_id) {
  return request({
    url: '/admin/selectUser?user_id=' + user_id,
    method: 'get',
  });
}
export function deleteUser(user_id) {
  return request({
    url: '/admin/delUser?user_id=' + user_id,
    method: 'get',
  });
}
export function deleteType(id) {
  return request({
    url: '/admin/deleteType?id=' + id,
    method: 'get',
  });
}

export function modifyType(data) {
  return request({
    url: '/admin/modifyType',
    method: 'post',
    data,
  });
}
export function addType(data) {
  return request({
    url: '/admin/addType',
    method: 'post',
    data,
  });
}
